
class Dog:

    def __init__(self):
        self.name ="xiaohei"
        self.age =3


    def bark(self):
        print(f"{self.name} 在汪汪叫")


if __name__ == '__main__':
    xiaohei = Dog()
    xiaohei.bark()